package com.yjzx.config;

import com.yjzx.bean.ClassInfo;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author yjzx
 * @date 2023/10/22
 * @description
 */
@Configuration
@ConfigurationProperties("properties")
public class YamlConfig {
    private String jarPath;
    private String jarName;
    private String printPath;
    private List<ClassInfo> classInfos;

    public String getJarPath() {
        return jarPath;
    }

    public void setJarPath(String jarPath) {
        this.jarPath = jarPath;
    }

    public String getPrintPath() {
        return printPath;
    }

    public String getJarName() {
        return jarName;
    }

    public void setJarName(String jarName) {
        this.jarName = jarName;
    }

    public void setPrintPath(String printPath) {
        this.printPath = printPath;
    }

    public List<ClassInfo> getClassInfo() {
        return classInfos;
    }

    public void setClassInfo(List<ClassInfo> classInfo) {
        this.classInfos = classInfo;
    }

    public YamlConfig(String jarPath, String jarName, String printPath, List<ClassInfo> classInfos) {
        this.jarPath = jarPath;
        this.jarName = jarName;
        this.printPath = printPath;
        this.classInfos = classInfos;
    }

    public YamlConfig(String jarPath, String printPath, List<ClassInfo> classInfo) {
        this.jarPath = jarPath;
        this.printPath = printPath;
        this.classInfos = classInfo;
    }

    public YamlConfig() {
    }

    @Override
    public String toString() {
        return "YamlConfig{" +
                "jarPath='" + jarPath + '\'' +
                ", jarName='" + jarName + '\'' +
                ", printPath='" + printPath + '\'' +
                ", classInfos=" + classInfos +
                '}';
    }
}
